﻿@model EasySite.Web.ViewModels.Account.LoginViewModel


<form id="loginForm" action="/Login" method="post">
    <table>
        <colgroup>
            <col class="col1" />
            <col class="col2" />
        </colgroup>
        <tbody>
            <tr>
                <td>Username</td>
                <td>
                    @Html.TextBoxFor(m => m.Username, new { @class="txt"})
                </td>
            </tr>
            <tr>
                <td>Password</td>
                <td>
                    @Html.PasswordFor(m => m.Password, new { @class="txt"})
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    @Html.CheckBoxFor(m => m.Remember, new { id="checkRemember"})
                    <label for="checkRemember">Remember me</label>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <input type="submit" value="Login" class="button-s" />
                </td>
            </tr>
            @if (!string.IsNullOrEmpty(Model.Error)) { 
                <tr>
                    <td colspan="2" class="error">@Model.Error</td>
                </tr>
            }
        </tbody>
    </table>
</form>
    